package bean;

import java.time.LocalDate;

public class ClassBean {
    private int id;
    private String name;
    private String teacher;
    private LocalDate date = LocalDate.now();

    public ClassBean(String name, String teacher, LocalDate date) {
        this.name = name;
        this.teacher = teacher;
        this.date = date;
    }

    public ClassBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ClazzBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", teacher='" + teacher + '\'' +
                ", date=" + date +
                '}';
    }
}
